package Oop.ooptest.test06;

public class ComputerTest {
    public static void main(String[] args) {
        DarErComputer d = new DarErComputer();
        //调用公有方法，操作属性
        d.setBrand("火影");
        System.out.println(d.getBrand());

        //创建有参对象
        DarErComputer d2 = new DarErComputer("戴尔",1.1f,1.2f,"黄色");
        System.out.println(d2.getBrand());
        System.out.println(d2.getK());
        System.out.println(d2.getC());
        System.out.println(d2.getColor());



    }
}
